namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 备份 - 任务
    /// </summary>
    public DbSet<POBakWcsTask> BakWcsTasks { get; set; }
}

/// <summary>
/// 备份 - 任务
/// 表[bak_wcs_task]
/// </summary>
[Table("bak_wcs_task")]
public class POBakWcsTask
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[bak_wcs_task.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 流水号
    /// [bak_wcs_task.task_no)]
    /// </summary>
    [Column("task_no")]
    public int? TaskNo { get; set; }
    /// <summary>
    /// 启动设备
    /// [bak_wcs_task.start_equip)]
    /// </summary>
    [Column("start_equip")]
    public long? StartEquip { get; set; }
    /// <summary>
    /// 开始地址
    /// [bak_wcs_task.start_loc)]
    /// </summary>
    [Column("start_loc")]
    public long? StartLoc { get; set; }
    /// <summary>
    /// 当前设备
    /// [bak_wcs_task.current_equip)]
    /// </summary>
    [Column("current_equip")]
    public long? CurrentEquip { get; set; }
    /// <summary>
    /// 当前地址
    /// [bak_wcs_task.current_loc)]
    /// </summary>
    [Column("current_loc")]
    public long? CurrentLoc { get; set; }
    /// <summary>
    /// 目标设备
    /// [bak_wcs_task.target_equip)]
    /// </summary>
    [Column("target_equip")]
    public long? TargetEquip { get; set; }
    /// <summary>
    /// 目标地址
    /// [bak_wcs_task.target_loc)]
    /// </summary>
    [Column("target_loc")]
    public long? TargetLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.cache_loc)]
    /// </summary>
    [Column("cache_loc")]
    public long? CacheLoc { get; set; }
    /// <summary>
    /// 任务状态
    /// [bak_wcs_task.task_status)]
    /// </summary>
    [Column("task_status")]
    public int? TaskStatus { get; set; }
    /// <summary>
    /// 任务类型
    /// [bak_wcs_task.task_type)]
    /// </summary>
    [Column("task_type")]
    public int? TaskType { get; set; }
    /// <summary>
    /// 任务组
    /// [bak_wcs_task.task_group)]
    /// </summary>
    [Column("task_group")]
    public int? TaskGroup { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_group_count)]
    /// </summary>
    [Column("task_group_count")]
    public int? TaskGroupCount { get; set; }
    /// <summary>
    /// 组顺序号
    /// [bak_wcs_task.task_group_index)]
    /// </summary>
    [Column("task_group_index")]
    public int? TaskGroupIndex { get; set; }
    /// <summary>
    /// 物料Id
    /// [bak_wcs_task.master_id)]
    /// </summary>
    [Column("master_id")]
    public long? MasterId { get; set; }
    /// <summary>
    /// 订单从表Id
    /// [bak_wcs_task.summary_id)]
    /// </summary>
    [Column("summary_id")]
    public long? SummaryId { get; set; }
    /// <summary>
    /// 订单明细Id
    /// [bak_wcs_task.detail_id)]
    /// </summary>
    [Column("detail_id")]
    public long? DetailId { get; set; }
    /// <summary>
    /// SKU
    /// [bak_wcs_task.sku_id)]
    /// </summary>
    [Column("sku_id")]
    public long? SkuId { get; set; }
    /// <summary>
    /// [bak_wcs_task.sku_code)]
    /// </summary>
    [Column("sku_code")]
    public string SkuCode { get; set; }
    /// <summary>
    /// [bak_wcs_task.is_abnormal)]
    /// </summary>
    [Column("is_abnormal")]
    public bool? IsAbnormal { get; set; }
    /// <summary>
    /// 是否喷涂[1:喷涂；0:不喷涂]
    /// [bak_wcs_task.is_spray)]
    /// </summary>
    [Column("is_spray")]
    public int? IsSpray { get; set; }
    /// <summary>
    /// 结束库位
    /// [bak_wcs_task.finish_loc)]
    /// </summary>
    [Column("finish_loc")]
    public long? FinishLoc { get; set; }
    /// <summary>
    /// 结束方式
    /// [bak_wcs_task.finish_mode)]
    /// </summary>
    [Column("finish_mode")]
    public int? FinishMode { get; set; }
    /// <summary>
    /// 结束时间
    /// [bak_wcs_task.finish_time)]
    /// </summary>
    [Column("finish_time")]
    public DateTime? FinishTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [bak_wcs_task.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [bak_wcs_task.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [bak_wcs_task.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// [bak_wcs_task.remark_memo)]
    /// </summary>
    [Column("remark_memo")]
    public string RemarkMemo { get; set; }
    /// <summary>
    /// [bak_wcs_task.tooltip_memo)]
    /// </summary>
    [Column("tooltip_memo")]
    public string TooltipMemo { get; set; }
    /// <summary>
    /// [bak_wcs_task.back_time)]
    /// </summary>
    [Column("back_time")]
    public DateTime? BackTime { get; set; }
    /// <summary>
    /// [bak_wcs_task.line_task_no)]
    /// </summary>
    [Column("line_task_no")]
    public int? LineTaskNo { get; set; }
    /// <summary>
    /// 出库放胎位ID
    /// [bak_wcs_task.house_output_loc)]
    /// </summary>
    [Column("house_output_loc")]
    public long? HouseOutputLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.call_delete)]
    /// </summary>
    [Column("call_delete")]
    public int? CallDelete { get; set; }
    /// <summary>
    /// 扫描次数
    /// [bak_wcs_task.scans_count)]
    /// </summary>
    [Column("scans_count")]
    public int? ScansCount { get; set; }
    /// <summary>
    /// 0正常 1线体流水号跟条码不一致  
    /// [bak_wcs_task.error_code)]
    /// </summary>
    [Column("error_code")]
    public int? ErrorCode { get; set; }
    /// <summary>
    /// 0正常 1任务无法到达目标位
    /// [bak_wcs_task.target_code)]
    /// </summary>
    [Column("target_code")]
    public int? TargetCode { get; set; }
    /// <summary>
    /// 硫化机时间(秒)
    /// [bak_wcs_task.curing_time)]
    /// </summary>
    [Column("curing_time")]
    public int? CuringTime { get; set; }
    /// <summary>
    /// 0：非直运；1：直运
    /// [bak_wcs_task.direct_delivery)]
    /// </summary>
    [Column("direct_delivery")]
    public int? DirectDelivery { get; set; }
    /// <summary>
    /// 异常任务ID【中途异常】
    /// [bak_wcs_task.abnormal_id)]
    /// </summary>
    [Column("abnormal_id")]
    public long? AbnormalId { get; set; }
    /// <summary>
    /// 经过硫化排虚拟扫描ID
    /// [bak_wcs_task.spin_scan_id)]
    /// </summary>
    [Column("spin_scan_id")]
    public long? SpinScanId { get; set; }
    /// <summary>
    /// 扫描时间
    /// [bak_wcs_task.spin_time)]
    /// </summary>
    [Column("spin_time")]
    public DateTime? SpinTime { get; set; }
    /// <summary>
    /// [bak_wcs_task.is_download)]
    /// </summary>
    [Column("is_download")]
    public int? IsDownload { get; set; }
    /// <summary>
    /// [bak_wcs_task.is_out_scanner)]
    /// </summary>
    [Column("is_out_scanner")]
    public int? IsOutScanner { get; set; }
    
}
